Jump to content

Recommended Posts

Hello fellow modders,

 

I am trying to make a bottle of holy water that adds sanity to your meter,

But the only way I found possible is to eat the bottle using the edible component.

 

The healer component doesn't seem to have an option to add sanity,

so I made my own sanity_healer component.

 

Only now, when I try to add sanity to Wilson ingame using the holy water item,

Wilson replies with 'I can't do that'.

Am I doing something wrong? And if so, how can I solve this issue?

 

Thanks in advance!

HolyWater.zip

Making it an edible component would probably work best then, all you'd need it to do is:

inst.components.edible.sanityvalue = TUNING.SANITY_HUGE(Could also be TINY, SMALL, MED I think, LARGE)

It's pretty simple and works well enough.

Edited by Mr. Tiddles

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...